From: Florian Müllner Date: Tue, 14 May 2024 17:49:56 +0000 (+0200) Subject: authPrompt: Use signal handler instead of vfunc X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~131 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dac4f2cb862ce3f561faaa5a8a316377758b7c0b;p=gnome-shell.git authPrompt: Use signal handler instead of vfunc The prompt itself may get destroyed when canceled, in which case it is no longer possible to chain up in the vfunc. This is usually not an issue as the prompt is only destroyed at the end of a transition, but it results in a warning if animations are disabled. Part-of: --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index ec1c931e6..ece597cc3 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -133,10 +133,10 @@ export const AuthPrompt = GObject.registerClass({ this._userVerifier = null; } - vfunc_key_press_event(event) { + on_key_press_event(event) { if (event.get_key_symbol() === Clutter.KEY_Escape) this.cancel(); - return super.vfunc_key_press_event(event); + return Clutter.EVENT_PROPAGATE; } _initInputRow() {